package com.cn.wanxi.thread;

public class MyRunnableTest {
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable,"a");
//        thread.setName("a");
        thread.start();
        Thread thread1 = new Thread(myRunnable);
        thread1.setName("b");
        thread1.start();
        Thread thread2 = new Thread(myRunnable);
        thread2.setName("c");
        thread2.start();
        Thread thread3 = new Thread(myRunnable);
        thread3.setName("d");
        thread3.start();
    }
}
